def main():
    while True:
        try:
            num = int(input())
            cal1 = 2 ** 5
            cal2 = 23
            print(round(num * cal2 / 8, 6))
            print(round(num / cal1, 6))
        except:
            break


def cal(h):
    h2 = h/2
    d = h + h2
    return h2, d

def main2():
    while True:
        try:
            d = 0
            h = int(input())
            for i in range(5):
                h, d0 = cal(h)
                d = d0 + d
                print('d', d)
            print(d)
            print('%6f' % h)
        except:
            break

if __name__ == '__main__':
    # main()
    main2()